//
//  LearnWordViewController.h
//  HotWord
//
//  Created by ZHONG YUE on 11-8-24.
//  Copyright 2011年 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "Word.h"

@interface LearnWordViewController : UIViewController <UIScrollViewDelegate>{
    UIImageView *TopBackImgView;
    UIImageView *CoverImgView;
    UIImageView *SameImgView;
    UIImageView *AntonymImgView;
    UIImageView *SynonymImgView;
    UIButton *GuessBtn;
    UIButton *SameBtn;
    UIButton *AntonymBtn;
    UIButton *SynonymBtn;
    UIImageView *SameShadowImgView;
    UIImageView *AntonymShadowImgView;
    UIImageView *SynonymShadowImgView;
    UIButton *ShowMoreBtn;
    UIButton *ReturnBtn;
    UILabel *wordIndexLabel;
    UIImageView *leftForwordImgView;
    UIImageView *rightForwordImgView;
    UILabel *sameLabel;
    UILabel *antonyLabel;
    UILabel *synonyLabel;
    UIImageView *sameLeftImgview;
    UIImageView *sameRightImgView;
    UIImageView *antonyLeftImgView;
    UIImageView *antonyRightImgView;
    UIImageView *synonyLeftImgView;
    UIImageView *synonyRightImgView;
    
    BOOL _guessBtnState;
    BOOL _sameBtnState;
    BOOL _antonymBtnState;
    BOOL _synonymBtnState;
    
    int _guessBtnTouchCount;
    UIImageView *CoverImageViewShadow;
    
    UIScrollView *wordScrollView;
    UIScrollView *translateScrollView;
    
    Word *word;
    
    NSInteger currentChangedWordIndex;
    
    NSInteger currentParanymWordIndex;
    NSInteger currentAntonymWordIndex;
    NSInteger currentSynonymWordIndex;
    UIScrollView *paranyScrollView;
    UIScrollView *synonyScrollView;
    UIScrollView *antonyScrollView;
    
    
    UIImageView *transGoLeft;
    UIImageView *transGoRight;
    float Time_Count;
    float Clock_Count;
    
    NSInteger willHideTag;
}

@property (nonatomic, retain) IBOutlet UIImageView *transGoLeft;
@property (nonatomic, retain) IBOutlet UIImageView *transGoRight;

@property (nonatomic)int _guessBtnTouchCount;
@property (nonatomic, retain) IBOutlet UIImageView *CoverImageViewShadow;
@property (nonatomic, retain) IBOutlet UIImageView *TopBackImgView;
@property (nonatomic, retain) IBOutlet UIImageView *CoverImgView;
@property (nonatomic, retain) IBOutlet UIImageView *SameImgView;
@property (nonatomic, retain) IBOutlet UIImageView *AntonymImgView;
@property (nonatomic, retain) IBOutlet UIImageView *SynonymImgView;
@property (nonatomic, retain) IBOutlet UIButton *GuessBtn;
@property (nonatomic, retain) IBOutlet UIButton *SameBtn;
@property (nonatomic, retain) IBOutlet UIButton *AntonymBtn;
@property (nonatomic, retain) IBOutlet UIButton *SynonymBtn;
@property (nonatomic, retain) IBOutlet UIImageView *SameShadowImgView;
@property (nonatomic, retain) IBOutlet UIImageView *AntonymShadowImgView;
@property (nonatomic, retain) IBOutlet UIImageView *SynonymShadowImgView;
@property (nonatomic, retain) IBOutlet UIButton *ShowMoreBtn;
@property (nonatomic, retain) IBOutlet UIButton *ReturnBtn;
@property (nonatomic, retain) IBOutlet UILabel *wordIndexLabel;
@property (nonatomic, retain) IBOutlet UIImageView *leftForwordImgView;
@property (nonatomic, retain) IBOutlet UIImageView *rightForwordImgView;
@property (nonatomic, retain) IBOutlet UILabel *sameLabel;
@property (nonatomic, retain) IBOutlet UILabel *antonyLabel;
@property (nonatomic, retain) IBOutlet UILabel *synonyLabel;
@property (nonatomic, retain) IBOutlet UIImageView *sameLeftImgview;
@property (nonatomic, retain) IBOutlet UIImageView *sameRightImgView;
@property (nonatomic, retain) IBOutlet UIImageView *antonyLeftImgView;
@property (nonatomic, retain) IBOutlet UIImageView *antonyRightImgView;
@property (nonatomic, retain) IBOutlet UIImageView *synonyLeftImgView;
@property (nonatomic, retain) IBOutlet UIImageView *synonyRightImgView;

@property (nonatomic)NSInteger currentChangedWordIndex;
@property (nonatomic)NSInteger currentParanymWordIndex;
@property (nonatomic)NSInteger currentAntonymWordIndex;
@property (nonatomic)NSInteger currentSynonymWordIndex;

@property (nonatomic, retain) IBOutlet UIScrollView *paranyScrollView;
@property (nonatomic, retain) IBOutlet UIScrollView *synonyScrollView;
@property (nonatomic, retain) IBOutlet UIScrollView *antonyScrollView;


- (IBAction)GuessWordAnimation:(id)sender;
- (IBAction)SameWordAnimation:(id)sender;
- (IBAction)AntonymWordAnimation:(id)sender;
- (IBAction)SynonymWordAnimation:(id)sender;

- (void)CoverUpToShowWord;
- (void)CoverDownToHiddenWord;
- (void)ViewFlipToShowWord:(UIView *)view;
- (void)ViewFlipToHiddenWord:(UIView *)view;
- (void)ButtonMoveToLeft:(id)sender;
- (void)ButtonMoveToMiddle:(id)sender;

- (void)loadNewWord;
- (void)loadWordWhileCoverUp:(NSString *)wordID;
- (void)saveCurrentWordIndex;//当离开学习页面得时候，纪录当前学习字母单词在表中得索引位置
-(void)showTransSign;
- (void)setMemeberKit;

- (void)PushImgView:(UIView *)view ToPosition:(CGRect)postion;
- (void)LoadPrepareThreeImgView;
- (IBAction)ShowThreeImgView;
- (void)HiddenThreeImgView;
- (IBAction)ReturnToMenu:(id)sender;

@end
